package com.reggie.mapper;

import com.reggie.pojo.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderdetailMapper {
    Integer add(OrderDetail orderDetail);

    @Select("SELECT * FROM order_detail WHERE order_id=#{orderId}")
    List<OrderDetail> findByOrderId(Long orderId);
}
